#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <loginwidget.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void setLoginWidgetRefer(LoginWidget *w); //设置LoginWidget的引用

private slots:
    void on_btn_workerManage_clicked();

    void on_btn_attendance_clicked();

    void on_btn_systemSetting_clicked();

    void on_btn_leaveApproval_clicked();

    void on_btn_attendanceRegister_clicked();

    void on_btn_homeownerManage_clicked();

    void on_btn_leave_clicked();

    void on_btn_carManage_clicked();

    void on_btn_exit_clicked();

    void on_btn_payManage_clicked();

    void on_btn_maintainManage_clicked();

private:
    Ui::MainWindow *ui;
    LoginWidget *loginWidget;
    void initWindow(); //初始化窗体
};

#endif // MAINWINDOW_H
